<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  ...
</head>
<body>
<div th:fragment="footer" class="footer">
  <div class="layui-row">
    <ul class="layui-col-sm3">
      <li>条款</li>
      <li><a href="../terms-of-service.html">服务条款</a></li>
    </ul>
    <ul class="layui-col-sm3">
      <li>友情链接</li>
      <li>虚位以待</li>
    </ul>
  </div>
  <p><a href="#">flyapi</a> &copy; 2017-2018  <a href="http://www.miitbeian.gov.cn/">皖ICP备18004846号</a></p>
</div>
</body>
<script>
    layui.use('util', function(){
        var $ = layui.jquery;
        var util = layui.util;

        //右下角bar top
        util.fixbar({
            bar1: true,
            click: function(type){
                console.log(type);
                if(type === 'bar1'){
                    alert('点击了bar1')
                }
            }
        });
    });
</script>
</html>
